<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="java.util.*,erp.education.server.db.entites.setup.school.Schools"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>School Register Form</title>
 <link rel="stylesheet" href="css/default.css"/>
<link rel="stylesheet" href="css/<%=session.getAttribute("cssView")%>/jquery-ui.css"/>
<script type="text/javascript">
 $(document).ready(function(){
 defaultFunction();
 ui();
 jGrid();
 
 })
 </script>
<script type="text/javascript" src="js/setup/schoolregister.js"></script>
</head>

<body>
<%
List result=(List)request.getAttribute("result");
List<Schools> schools=(List<Schools>)result.get(0);
%>
<div class="pageHeader">school details</div>
<div class="content">
 <div class="form">
<form name="schoolDetails" action="saveSchoolDetails">

<table class="form" cellpadding="0" cellspacing="0" width="500" >
<tr><td>School Name : </td><td ><input type="text" name="schoolName" notNull nnm="Enter school name" style="width:100%" /></td></tr>
<tr><td>Registration Id : </td><td><input type="text" name="registrationId" notNull msg="Enter registration id" /></td></tr>

 
 
<tr><td>phone no : </td><td><input type="text" name="phoneNo" phoneno/> </td></tr>
<tr><td>fax no : </td><td><input type="text" name="faxNo" /></td></tr>
<tr><td>email id : </td><td><input type="text" name="emailId" email/></tr>
 
<tr><td>Register date : </td><td><input type="text" name="registrationDate" notNull date nnm="Enter register date" /></td></tr>
<tr> <td align="right" colspan="2" ><input type="button" value="Save" onclick="schoolregister.saveupdate();" /><input type="reset" value="Clear" /></td></tr>
</table>

</form> 
</div>
 <br/>
<div class="grid_holder">
<a href="#" navigate onclick="return false" style="text-decoration:none" >
<table navigate class="grid" cellpadding="0" cellspacing="0" onDelete="schoolregister.removeSchool()" onEdit="schoolregister.editSchool()" searchAction="schoolregister.action">
<thead>
<tr>
 <th></th>
<th class="hide">School Id</th>
<th>Reg Id</th>
<th>Name</th>
<th>Reg Date</th>
<th>Phno</th>
<th>Fax</th>
<th>Email</th>
<th></th>
<th></th>
</tr>
</thead>

<tbody>
<%
 
for(Schools school:schools){
%>
<tr active='N' >
 <td>&nbsp;&nbsp;</td>
  <td class='hide'> <%=school.getSchoolId() %></td>
  <td field="registrationId" edit="false"><%=school.getRegisterId() %></td>
  <td field="schoolName"><%=school.getSchoolName() %></td>
  <td field="registrationDate"><%=school.getRegDate() %></td>
  <td field="phoneNo"><%=school.getPhoneNo() %></td>
    <td field="faxNo"><%=school.getFaxNo() %></td>
      <td field="emaiId"><%=school.getEmailId() %></td>
  <td width="16"><span class="ui-icon ui-icon-pencil"></span></td>
  <td width="16"><span class="ui-icon ui-icon-trash"></span></td>
</tr>
 <%} %>
</tbody></table>
</a>
</div>
</div>
</body>
</html>
